import type { CartItem } from '@/types/cart'
import { http } from '@/utils/http'
type CartType = {
  skuId: string
  count: number
}
// 接口过期了后续用store代替
export const addCartAPI = (cart: CartType) => {
  return http<CartItem>({
    url: '/member/cart',
    method: 'POST',
    data: {
      cart,
    },
  })
}
